import Vue from 'vue';
import Router from 'vue-router';
import Menu from '@/components/page/menu-management';
import Role from '@/components/page/role-management';
import User from '@/components/page/user-management';
import Vip from '@/components/page/vip-list';
import Banner from '@/components/page/banner';
import Goods from '@/components/page/goods-list';
import Order from '@/components/page/order-list';
import Refund from '@/components/page/refund-list';
import Cash from '@/components/page/cash-list';
import Distribution from '@/components/page/distribution-list';

Vue.use(Router)

export default new Router({
	routes: [
			{
			path: '/',
			name: 'Menu',
			component: Menu
		},{
			path: '/distribution',
			name: 'Distribution',
			component: Distribution
		},{
			path: '/cash',
			name: 'Cash',
			component: Cash
		}, {
			path: '/refund',
			name: 'Refund',
			component: Refund
		}, {
			path: '/order',
			name: 'Order',
			component: Order
		}, {
			path: '/goods',
			name: 'Goods',
			component: Goods
		}, {
			path: '/banner',
			name: 'Banner',
			component: Banner
		}, {
			path: '/vip',
			name: 'Vip',
			component: Vip
		},
		{
			path: '/role',
			name: 'Role',
			component: Role
		},
		{
			path: '/menu',
			name: 'Menu',
			component: Menu
		}, {
			path: '/user',
			name: 'User',
			component: User
		}
	]
})
